<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div class="gpu"></div>
  <style>
    .gpu {
      background-color: darkgreen;
      width: 50px;
      height: 50px;
      transform: translate(0, 0);
      animation: slide 3.7s ease-in-out infinite;
    }

    @keyframes slide {
      25% {
        transform: translate(250px, 0);
      }

      50% {
        transform: translate(250px, 250px);
      }

      75% {
        transform: translate(0, 250px);
      }
    }
  </style>
</body>

</html>